#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/wait.h>


int  main()
{
  printf("begin...\n");

  //execl("/usr/bin/ls","ls","-a","-l",NULL);
  //execl("/usr/bin/pwd","which",NULL);
 
  //execlp("ls","-a","-l",NULL);
  
  char *argv[]=
  {
    (char*)"ls",
    (char*)"-a",
    (char*)"-l",
    NULL
  };
  //execv("/usr/bin/ls",argv);
  //execvp("./myprocess",argv);
  extern char** environ;
  char *a[]={
    (char*)"qqq",
    (char*)"222"
  };
  //execvpe("./myprocess",argv,a);
  execle("/usr/bin/ls","-a","-l",NULL,environ);




  return 0;
}
